DBDIR=dbs
if [ ! -d $DBDIR ]; then
	mkdir $DBDIR 
	if [ ! -d $DBDIR ]; then exit 1; fi;
fi

for name in users projects
do
	SQLFILE=$DBDIR/create_$name.sql
	DBFILE=$DBDIR/$name.sql
	sqlite3 -init $SQLFILE $DBFILE ".q"
done
